<?php if ($this->pageCount): ?>
<div class="paginationControl">
<table>
    <tr>
        <!-- First page link -->
        <td class="first">
            <?php if (isset($this->previous)): ?>
                <a href="<?php echo $this->url(array('page' => $this->first)); ?>">First</a>
            <?php else: ?>
                <span class="disabled">First</span>
            <?php endif; ?>
        </td>
        <!-- Previous page link -->
        <td class="previous">
            <?php if (isset($this->previous)): ?>
                <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt; Previous</a>
            <?php else: ?>
                <span class="disabled">&lt; Previous</span>
            <?php endif; ?>
        </td>
        <!-- Numbered page links -->
        <td class="center">|
            <?php foreach ($this->pagesInRange as $page): ?>
              <?php if ($page != $this->current): ?>
                <a href="<?php echo $this->url(array('page' => $page)); ?>">
                    <?php echo $page; ?>
                </a> |
              <?php else: ?>
                <?php echo $page; ?> |
              <?php endif; ?>
            <?php endforeach; ?>
        </td>
        <!-- Next page link -->
        <td class="next">
            <?php if (isset($this->next)): ?>
              <a href="<?php echo $this->url(array('page' => $this->next)); ?>">Next &gt;</a>
            <?php else: ?>
              <span class="disabled">Next &gt;</span>
            <?php endif; ?>
        </td>
        <!-- Last page link -->
        <td class="last">
            <?php if (isset($this->next)): ?>
              <a href="<?php echo $this->url(array('page' => $this->last)); ?>">Last</a>
            <?php else: ?>
                <span class="disabled">Last</span>
            <?php endif; ?>
        </td>
    </tr>
</table>
</div>
<?php endif;  ?>
